//
//  Constant.m
//  Conference
//
//  Created by chenxin on 12-11-15.
//
//

#import "Constant.h"

@implementation Constant
@synthesize CONTROLLER_ALARM;
@synthesize CONTROLLER_SCHEDULE;
@synthesize CONTROLLER_NEWS;
@synthesize CONTROLLER_HOTEL;
@synthesize CONTROLLER_AIRPORT;
@synthesize CONTROLLER_CREDENTIALS;
@synthesize CONTROLLER_SHAKE;
@synthesize CONTROLLER_PALCE;
@synthesize CONTROLLER_ELESPEECH;
@synthesize CONTROLLER_TASKASSIGN;
@synthesize CONTROLLER_CHAT;
@synthesize CURRENT_VESION;
@synthesize oldVersion;
@synthesize currentVersion;

@synthesize userName;
@synthesize Pwd;
@synthesize webService;
@synthesize AutoLogin;
@synthesize ChgPwd;
@synthesize MeetingName;

@synthesize net_error;
@synthesize account_error;
@synthesize data_isempty;
@synthesize username_isempty;
@synthesize pwd_isempty;
@synthesize net_exception;
@synthesize put_info_error;
@synthesize chat_isempty;
@synthesize chat_ret_isempty;
@synthesize IS_HIDE_MYSELF;
@synthesize set_privacy_succ;
static Constant *sharedManager=nil;
+(Constant *)getInstance{
	@synchronized(self){
		if(sharedManager ==nil){
			sharedManager=[[self alloc] init];
		}
	}
	return sharedManager;
}

-(id)init{
	if (self =[super init]) {
        self.CURRENT_VESION=@"current_version";
        
        self.userName=@"userName";
        self.Pwd=@"Pwd";
        self.webService=@"webService";
        self.AutoLogin=@"AutoLogin";
        self.ChgPwd=@"ChgPwd";
        self.MeetingName=@"Conference";
        
        self.oldVersion=3;
        self.currentVersion=4;
        self.CONTROLLER_ALARM=1;
        self.CONTROLLER_SCHEDULE=2;
        self.CONTROLLER_NEWS=3;
        self.CONTROLLER_HOTEL=4;
        self.CONTROLLER_AIRPORT=5;
        self.CONTROLLER_CREDENTIALS=6;
        self.CONTROLLER_PALCE=8;
        self.CONTROLLER_ELESPEECH=9;
        self.CONTROLLER_TASKASSIGN=10;
        
        self.CONTROLLER_SHAKE=7;
        self.CONTROLLER_CHAT=11;
        
        self.data_isempty=@"没有任何数据！";
        self.account_error=@"用户名不存在或密码错误，请重试！";
        self.net_error=@"网络连接失败,请稍后再试！";
        self.username_isempty=@"用户名不能为空！";
        self.pwd_isempty=@"密码不能为空！";
        self.net_exception=@"获取数据失败,请稍后再试！";
        self.put_info_error=@"连接服务器失败，请稍后再试！";
        self.chat_isempty=@"请正确输入想咨询问题，谢谢！";
        self.chat_ret_isempty=@"没有更早数据！";
        self.set_privacy_succ=@"隐私设置成功";
        
        self.IS_HIDE_MYSELF=@"isHideMySelf";
    }return  self;
}

-(void)dealloc{
    [super dealloc];
}
@end
